import {type DirectiveBinding } from 'vue'

export default {
    mounted(_el: HTMLElement, binding: DirectiveBinding) {
        // 获取element，定义scroll
        const dropdown = document.querySelector(
            '.el-select-dropdown .el-vl__wrapper .el-vl__window.el-select-dropdown__list'
        ) as HTMLElement;
        
        
        
        if (dropdown) {
            dropdown.addEventListener('scroll', binding.value)
        }
    }
}